package com.thinkingstar.iads.datacenter.entity;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.EL;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Prev;
import org.nutz.dao.entity.annotation.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Comment("站站里程数据库")
@Table("dc_mileageLibrary_library")
public class DcMileageLibrary {
	
	@Column("id")
	@Name
	@Comment("主键")
	@ColDefine(type = ColType.VARCHAR, width = 32)
	@Prev(els = { @EL("uuid()") })
	protected String id;
	
	@Comment("序号")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	protected String serial_number;
	
	@Comment("起点")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	protected String origin;
	
	@Comment("迄点")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	protected String arrival;
	
	@Comment("里程")
	@Column
	@ColDefine(type = ColType.FLOAT)
	protected Double mileage;
	

}
